package com.shy.springframework.test.bean;

import com.shy.springframework.beans.factory.annotation.Autowired;
import com.shy.springframework.stereotype.Component;

/**
 * @author yzpang
 * @desc:
 * @date: 2023/2/14 13:24
 */
@Component
public class Husband{
    @Autowired
    private Wife wife;

    public Wife getWife() {
        return wife;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
    }
    public String queryWife(){
        return "Husband.wife";
    }
}
